package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 施工时效设计 对应表 CM_WORK_EFFICIENCY_DESIGN
public class CM_WorkEfficiencyDesign extends BABaseEntity{
    @Id
    @GenericGenerator(name="linerWorkGenerator", strategy="uuid")
    @GeneratedValue(generator="linerWorkGenerator")
    private String CM_WorkEfficiencyDesign_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "WORKITEM", length = 50)
    private String workItem;

    @Basic
    @Column(name = "SLURRYTYPE", length = 50)
    private String slurryType;

    @Basic
    @Column(name = "INJECTIONVOLUME")
    private Double injectionVolume;

    @Basic
    @Column(name = "TEMPERATURE")
    private Double temperature;

    @Basic
    @Column(name = "DISPLACEMENT")
    private Double displacement;

    @Basic
    @Column(name = "RETURNDISPLACEMENT")
    private Double returnDisplacement;

    @Basic
    @Column(name = "OUTTEMPERATURE")
    private Double outTemperature;

    @Basic
    @Column(name = "WORKTIME", length = 50)
    private String workTime;

    @Basic
    @Column(name = "NOTE", length = 50)
    private String note;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
